package learnjava.basic.other;

import java.util.Calendar;

public class TestRuntime {

    public static void main(String[] args) throws Exception{

        Runtime r = Runtime.getRuntime();
        Process p = r.exec("cmd /c D:\\tomcat8\\bin\\Tomcat8w.exe");
        Thread.sleep(5000);
        p.destroy();
    }
}
